<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>${category.name}</title>
    <meta name="decorator" content="cms_default_${site.theme}"/>
    <meta name="description" content="${category.description}"/>
    <meta name="keywords" content="${category.keywords}"/>
</head>
<body>
<div class="">
    <ul class="breadcrumb">
        <cms:frontCurrentPosition category="${category}"/>
    </ul>
</div>

<div class="section">
    <div class="container">
        <div class="row">
            <div class="col-sm-8">
                <div class="blog-post blog-single-post">
                    <h4>${category.name}</h4>
                    <c:if test="${category.module eq 'article'}">
                        <ul><c:forEach items="${page.list}" var="article">
                            <li><span class="pull-right"><fmt:formatDate value="${article.updateDate}"
                                                                         pattern="yyyy.MM.dd"/></span><a
                                    href="${article.url}"
                                    style="color:${article.color}">${fns:abbr(article.title,96)}</a>
                            </li>
                        </c:forEach></ul>
                        <div class="pagination">${page}</div>
                        <script type="text/javascript">
                            function page(n, s) {
                                location = "${ctx}/list-${category.id}${urlSuffix}?pageNo=" + n + "&pageSize=" + s;
                            }
                        </script>
                    </c:if>
                    <c:if test="${category.module eq 'link'}">
                        <ul><c:forEach items="${page.list}" var="link">
                            <li><a href="${link.href}" target="_blank" style="color:${link.color}"><c:out
                                    value="${link.title}"/></a></li>
                        </c:forEach></ul>
                    </c:if>
                </div>
            </div>

            <div class="col-sm-4 blog-sidebar">
                <h4>栏目列表</h4>
                <ul class="recent-posts">
                    <cms:frontCategoryList categoryList="${categoryList}"/>
                </ul>
                <h4>推荐阅读</h4>
                <ul class="recent-posts">
                    <cms:frontArticleHitsTop category="${category}"/>
                </ul>
            </div>
        </div>
    </div>
</div>
</body>
</html>